//
//  StockInquiryDetailCell.m
//  ProjectforHDX
//
//  Created by motom on 2016/11/22.
//  Copyright © 2016年 H.DX. All rights reserved.
//

#import "StockInquiryDetailCell.h"

@interface StockInquiryDetailCell()

@property (weak, nonatomic) IBOutlet UILabel *versionName;

@property (weak, nonatomic) IBOutlet UILabel *snName;

@property (weak, nonatomic) IBOutlet UILabel *stateName;

@property (weak, nonatomic) IBOutlet UILabel *locationName;
@property (weak, nonatomic) IBOutlet UILabel *companyName;
@property (weak, nonatomic) IBOutlet UILabel *numberName;

@property (weak, nonatomic) IBOutlet UILabel *numberLB;

@property (weak, nonatomic) IBOutlet UILabel *versionLB;
@property (weak, nonatomic) IBOutlet UILabel *locationLB;

@property (weak, nonatomic) IBOutlet UILabel *companyLB;
@property (weak, nonatomic) IBOutlet UILabel *snLB;
@property (weak, nonatomic) IBOutlet UILabel *isLockLb;
@property (weak, nonatomic) IBOutlet UILabel *WBSName;
@property (weak, nonatomic) IBOutlet UILabel *WBSLB;

@end

@implementation StockInquiryDetailCell

- (void)setmodel:(PlateModel *)plate
{
    self.versionLB.text = plate.version;
    
    self.locationLB.text = plate.local;
    
    self.companyLB.text = plate.attribution;
    
    self.snLB.text = plate.sn;
    
    self.numberLB.text  = plate.number;
    if ([plate.isLock isEqualToString:@"0"]) {
        self.isLockLb.text = [UtilCheck language:@"main.unlock"];//未锁定
    }
    else{
        self.isLockLb.text = [UtilCheck language:@"main.lock"];//已锁定
    }
    self.WBSLB.text = plate.wbs;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.numberBtn.layer.cornerRadius = 10;
    
    self.versionName.text =[NSString stringWithFormat:@"%@:",[UtilCheck language:@"order.part.version"]];
    
    self.snName.text = [NSString stringWithFormat:@"%@:",[UtilCheck language:@"order.part.sn"]];
    
    self.stateName.text = [NSString stringWithFormat:@"%@:",[UtilCheck language:@"main.state"]];
    
    self.companyName.text = [NSString stringWithFormat:@"%@:",[UtilCheck language:@"seeting.goodWeight"]];
    
    self.locationName.text = [NSString stringWithFormat:@"%@:",[UtilCheck language:@"seeting.goodLocation"]];
    
    self.numberName.text = [NSString stringWithFormat:@"%@:",[UtilCheck language:@"seeting.number"]];
    
    self.WBSName.text = [NSString stringWithFormat:@"%@:",[UtilCheck language:@"setting.wbs"]];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
